package com.cloudbroker.bcs.platform.ltb.bizapi.service.user.vo;

import com.cloudbroker.bcs.common.validatioin.annotation.*;
import com.cloudbroker.bcs.platform.ltb.bizapi.constants.type.UserType;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.base.vo.UserVO;

import java.util.List;

/**
 * Created by tianrui on 2016/7/5.
 */
public class UserLoginForm extends UserVO {

    private static final long serialVersionUID = 1L;

    @Mobile
    @Length(max = 255)
    @NotBlank
    protected String login_account;

    @NotBlank
    @Password
    @Length(max = 50)
    protected String password;

    @NotNull
    @EnumValue(enumClass = UserType.class)
    protected String user_type;

    @NotBlank
    //后续扩展参数 登录方式
    protected String login_way;

    @Length(max = 20)
    protected String sendercomp_id;

    @Length(max = 10)
    protected String company_id;

    @Length(max = 100)
    protected String registration_id;//极光注册id

    protected String ip;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getLogin_account() {
        return login_account;
    }

    public void setLogin_account(String login_account) {
        this.login_account = login_account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String getSendercomp_id() {
        return sendercomp_id;
    }

    @Override
    public void setSendercomp_id(String sendercomp_id) {
        this.sendercomp_id = sendercomp_id;
    }

    public String getLogin_way() {
        return login_way;
    }

    public void setLogin_way(String login_way) {
        this.login_way = login_way;
    }

    @Override
    public String getUser_type() {
        return user_type;
    }

    @Override
    public void setUser_type(String user_type) {
        this.user_type = user_type;
    }

    @Override
    public String getCompany_id() {
        return company_id;
    }

    @Override
    public void setCompany_id(String company_id) {
        this.company_id = company_id;
    }

    public String getRegistration_id() {
        return registration_id;
    }

    public void setRegistration_id(String registration_id) {
        this.registration_id = registration_id;
    }
}
